Tutorial: Build a Full Shiny Dashboard With shiny.fluent {https://t.co/zfojPNWmML} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
SHAP Analysis in 9 Lines {https://t.co/8A7GFMURsP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 24, 2021
Sentiment Analysis on Reddit using R {https://t.co/6b670kmKHk} #rstats #DataScience
— R-bloggers (@Rbloggers) June 25, 2021
What Makes a Sensitivity Analysis? {https://t.co/GYT45iEkDv} #rstats #DataScience
— R-bloggers (@Rbloggers) June 22, 2021
Create and Preview RMarkdown Documents with QBit Workspace {https://t.co/Npm8anjwpV} #rstats #DataScience
— R-bloggers (@Rbloggers) June 26, 2021
Exploring Frequentist and Bayesian Tolerance Intervals in R {https://t.co/wCl4TTbzIE} #rstats #DataScience
— R-bloggers (@Rbloggers) June 22, 2021
OddsPlotty has landed on CRAN {https://t.co/ENCuY1cf5M} #rstats #DataScience
— R-bloggers (@Rbloggers) June 22, 2021
simplevis – simple methods for adding colour to visualisations {https://t.co/1SQX5Oq6oq} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
Benchmark Bond Portfolio Returns using R code {https://t.co/Q4LAEZK7uP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
Hierarchical forecasting of hospital admissions- ML approach (ensemble) {https://t.co/aXYW6XzXU4} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
ggpairs in R- A Brief Introduction to ggpairs {https://t.co/O3AvyFHN16} #rstats #DataScience
— R-bloggers (@Rbloggers) June 24, 2021
aggregate Function in R- A powerful tool for data frames {https://t.co/OEPnH7Kqvn} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
Big Book of R has over 200 books! {https://t.co/uIeAiWl5Gr} #rstats #DataScience
— R-bloggers (@Rbloggers) June 5, 2021
How to structure your data workflow efficiently using R {https://t.co/1uYfk6oxXJ} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
Using Geospatial Data in R {https://t.co/KWcGGuga86} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2021
Time Series Introduction with R codes {https://t.co/Cv6BiCAf0X} #rstats #DataScience
— R-bloggers (@Rbloggers) June 16, 2021
Bayesian Linear Regression with Gibbs Sampling using R code {https://t.co/DBkKEAExyt} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
Understanding Logistic Regression {https://t.co/GhfsV0DGF3} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2021
Tutorial: Build a Full Shiny Dashboard With shiny.fluent {https://t.co/zfojPNWmML} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
Functional PCA with R {https://t.co/plIRTBZ0zq} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2021
Retrieving Stock Price using R {https://t.co/0NIUaNMUaP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
grafify: Make great-looking ggplot2 graphs quickly with R {https://t.co/ieMMplWSmA} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
Extract text from pdf in R and word Detection {https://t.co/Lg4NV52h51} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
New R textbook for machine learning {https://t.co/5pSLfPfLir} #rstats #DataScience
— R-bloggers (@Rbloggers) June 14, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```